#include "point.hpp"

Point::Point(double x, double y) : x(x), y(y)
{
    std::cout << __FUNCTION__ << " called." << std::endl;
    system("pause");
}
Point::~Point()
{
    std::cout << __FUNCTION__ << " called." << std::endl;
    system("pause");
}
double Point::distance(const Point &p)
{
    return std::sqrt((x - p.x) * (x - p.x) + (y - p.y) * (y - p.y));
}